/*
 * Project: Payment
 * Document: Merchant
 * Date: 2020/8/18 5:07 下午
 * Author: wangbz
 *
 * Copyright © 2020 www.ixiachong.com Inc. All rights reserved.
 * 注意：本内容仅限于深圳瞎充集团有限公司内部传阅，禁止外泄以及用于其他的商业目的
 */
package com.factory;

import lombok.extern.java.Log;

import java.util.Map;


@Log
public class WxMerchant extends GeneralMerchant<Object> {

    public WxMerchant(String no, Map<String, String> configs) {
        super(no, configs, true);
    }

    public String getAppId(){
        return this.configs.get("appId");
    }

    @Override
    protected Object newClient() {
        configs.entrySet().stream()
                .filter(entry -> entry.getValue() != null)
                .forEach(entry -> {
                    System.out.println("do sth");
                });
        return null;
    }

}
